<div class="admin_business link_blue">
<!--    <div class="user_tab mt15">-->
<!--        <a href="{:U('Ajax/ajax_send_sms',array('mobile'=>$userinfo['mobile'],'uid'=>$userinfo['uid']))}" class="tabli select">发送短信</a>-->
<!--        <a href="{:U('Ajax/ajax_send_pms',array('tousername'=>$userinfo['username'],'uid'=>$userinfo['uid']))}" class="tabli ">发站内信</a>-->
<!--        <if condition="$apply['Weixin']">-->
<!--        <a href="{:U('Weixin/Admin/msg_send',array('uid'=>$userinfo['uid']))}" class="tabli last">发微信</a>-->
<!--        </if>-->
<!--        <div class="clear"></div>-->
<!--    </div>-->


            <div class="show_box" style="margin-top:10px;"><div class="dialog_box">
                <form action="/index.php?m=Admin&amp;c=Guwen&amp;a=edit_withdraw_status" method="post" name="form" id="form">
                    <input type="hidden" name="uid" value="{$withdraw_info['gw_uid']}">
                    <input type="hidden" name="withdraw_id" value="{$withdraw_info['id']}">
                    <input type="hidden" name="status" value="{$status}">
                    <table width="100%" border="0" cellspacing="10" cellpadding="1" style=" margin-bottom:3px;">
                        <tbody>
                        <tr>
                            <td width="60" align="right">描述:</td>
                            <td width="420">
                                <textarea name="txt" class="input_text_default middle" style="height:80px;"></textarea><br>
                                <span style="color: #999999;">内容超过70个字符将自动截取</span></td>
                        </tr>
                        <tr>
                            <td align="right">&nbsp;</td>
                            <td>
                                <input name="check" type="button" class="admin_submit" id="check" value="立即发送"></td>
                        </tr>
                        </tbody></table>
                </form>
            </div>
            </div>

        </div><input type="hidden" class="J_btnload"></div></div></div>


    </div>
</div>
<script type="text/javascript">
    // $.getJSON("{:U('Ajax/ajax_send_sms',array('mobile'=>$userinfo['mobile'],'uid'=>$userinfo['uid']))}", function (result) {
    //     $('.show_box').html(result.data);
    // });
    $(".user_tab a").click(function () {
        $('.user_tab a').removeClass('select');
        $(this).addClass('select');
        var url = $(this).attr('href');
        $.getJSON(url, function (result) {
            if(result.status==1){
                $('.show_box').html(result.data);
            }else{
                $('.show_box').html('<table width="100%" border="0" cellspacing="10" cellpadding="1" style=" margin-left:18px;"><tr><td width="60" align="left">'+result.msg+'</td></tr></table>');
            }
        });
        return false;
    });

    $('#check').click(function () {
        var url="{:U('Guwen/edit_withdraw_status')}";
       $.post(url,$('#form').serialize(),function (res) {
          console.log(res);
          if(res.status==0){
              disapperTooltip('success','成功');
              setTimeout(function() {
                  location.href="{:U('Guwen/gu_wen_withdraw_list')}";
              },1000);
          }else{
              alert(res.msg)
          }
       })
    })
</script>